package com.innovationhero.main.client.UX;


import java.util.ArrayList;
import java.util.SortedMap;
import java.util.TreeMap;

import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.MouseOutEvent;
import com.google.gwt.event.dom.client.MouseOutHandler;
import com.google.gwt.event.dom.client.MouseOverEvent;
import com.google.gwt.event.dom.client.MouseOverHandler;
import com.google.gwt.event.logical.shared.AttachEvent;
import com.google.gwt.event.logical.shared.AttachEvent.Handler;
import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.GwtEvent.Type;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.event.shared.HandlerRegistration;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;
import com.innovationhero.main.client.UX.IdeaUXEventHandler;
// JavaScript Object
import com.google.gwt.core.client.JavaScriptObject;


	public class IdeaUX {
	
		/*
		 * This Constructor will instantiate the following 
		 * - PointNavigation from Navigation.java
		 * - IdeaBar from IdeaBar.java  
		 */
	public IdeaUX(){
		   HandlerManager eventBus = new HandlerManager(this);
		   SortedMap navPoints = new TreeMap();
		   
		   navPoints.put("1", "http://a0.twimg.com/profile_images/136103132/619239_wedding_flower_normal.jpg"); // Search
		   navPoints.put("2", "http://a0.twimg.com/profile_images/136103132/619239_wedding_flower_normal.jpg"); // Ideas
		   navPoints.put("3", "http://a0.twimg.com/profile_images/136103132/619239_wedding_flower_normal.jpg"); // Friends
		   navPoints.put("4", "http://a0.twimg.com/profile_images/136103132/619239_wedding_flower_normal.jpg"); // Profile 
		   navPoints.put("5", "http://a0.twimg.com/profile_images/136103132/619239_wedding_flower_normal.jpg"); // Settings

		   // instintiate  the Navigation bar and fire its events
		   
		    Navigation nav = new Navigation(navPoints ,eventBus);
		   IdeaBar ideabar = new IdeaBar(null, null, null, "http://video.ted.com/talks/podcast/MattRidley_2010G.mp4");
		   eventBus.fireEvent(new IdeaUXEvent());
		  
	}
}